<!DOCTYPE html>
<html>
<head>
    <title>Simple app</title>
    <script type="text/javascript" src="lib/angular.js"></script>
    <script type="text/javascript">

    </script>
</head>
<body ng-app>
<div class="container" ng-controller="TextAreaWithLimitCtrl">

    <span>Remaining: {{remaining()}}</span>
    <div class="row">
        <textarea ng-model="message">{{message}}</textarea>
    </div>
    <div class="row">
        <button ng-click="send()">Send</button>
        <button ng-click="clear()">Clear</button>
    </div>
</div>
</body>
</html>